import request from '@/utils/request'
// 客户


//获取会员列表
export function getCateList(params) {
    return request({
        url: '/mall/category',
        method: 'get',
        params
    })
}
export function detailCate(cateId) {
    return request({
        url: '/mall/category/detail',
        method: 'get',
        params:{"cate_id":cateId}
    })
}

//获取会员列表
export function getCateSelectTreelists(params) {
    return request({
        url: '/mall/category/getSelectLists',
        method: 'get',
        params
    })
}
export function createCate(data) {
    return request({
        url: '/mall/category/create',
        method: 'post',
        data
    })
}

export function updateCate(data) {
    return request({
        url: '/mall/category/update',
        method: 'put',
        data
    })
}
